package com.icoo.client.feign;

import com.icoo.base.model.ResultModel;
import com.icoo.client.config.FeignInterceptor;
import com.icoo.client.model.OrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Component
@FeignClient(value = "order",configuration = FeignInterceptor.class)
public interface OrderFeign {

    @RequestMapping(value = "/order/createOrder", method = RequestMethod.POST)
    public ResultModel createOrder(OrderVo orderVos);
}
